-- GENERATED SPELL FOR [Bonechewer Behemoth] --


function spell0_23196(pUnit, Event) --@Behemoth Charge,n/a--
pUnit:FullCastSpellOnTarget(41272,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23196', 3000, 1)
end

function spell1_23196(pUnit, Event) --@Fel Stomp,Self--
pUnit:FullCastSpellOnTarget(41274,pUnit)
pUnit:RegisterEvent('Sorts_23196', 3000, 1)
end

function spell2_23196(pUnit, Event) --@Fiery Comet,n/a--
pUnit:FullCastSpellOnTarget(41277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23196', 1000, 1)
end

function spell3_23196(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_23196', 639, 1)
end

function spell4_23196(pUnit, Event) --@Meteor,n/a--
pUnit:FullCastSpellOnTarget(41276,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23196', 2000, 1)
end

function Sorts_23196(pUnit, Event)
local choix_sorts_23196 = math.random(0, 4)
if choix_sorts_23196 == 0 then
pUnit:RegisterEvent('spell0_23196', 1, 1)
end
if choix_sorts_23196 == 1 then
pUnit:RegisterEvent('spell1_23196', 1, 1)
end
if choix_sorts_23196 == 2 then
pUnit:RegisterEvent('spell2_23196', 1, 1)
end
if choix_sorts_23196 == 3 then
pUnit:RegisterEvent('spell3_23196', 1, 1)
end
if choix_sorts_23196 == 4 then
pUnit:RegisterEvent('spell4_23196', 1, 1)
end
end

function mob23196_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23196', math.random(1500, 3000), 1)
end

function mob23196_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23196_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23196_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23196, 1, 'mob23196_Action')
RegisterUnitEvent(23196, 2, 'mob23196_Leave')
RegisterUnitEvent(23196, 3, 'mob23196_Kill')
RegisterUnitEvent(23196, 4, 'mob23196_Die')
